﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPC.Communication.Framework.Core.IMessage;

namespace IPC.Communication.Framework.Profinet.Geniitek
{
    public class VibrationSensorShortMessage : INetMessage
    {
        public int ProtocolHeadBytesLength
        {
            get { return 9; }
        }

        public byte[] HeadBytes
        {
            get;
            set;
        }

        public byte[] ContentBytes
        {
            get;
            set;
        }

        public byte[] SendBytes
        {
            get;
            set;
        }

        public bool CheckHeadBytesLegal(byte[] token)
        {
            if (HeadBytes == null)
            {
                return false;
            }
            if (HeadBytes[0] == 170)
            {
                return true;
            }
            return false;
        }

        public int GetContentLengthByHeadBytes()
        {
            return 0;
        }

        public int GetHeadBytesIdentity()
        {
            return 0;
        }
    }
}